!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[PopupRoot_Classic]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[PopupRoot_Classic]"]=t(require("react")):e["rb_wixui.thunderbolt[PopupRoot_Classic]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=r.useRef(null),{children:n,id:u,className:s,styles:i,ariaLabel:c}=e,a=r.useRef();r.useEffect((()=>{var e;const t=document.activeElement;t&&(a.current=t),null==(e=o.current)||e.focus();return()=>{const e=a.current;e&&document.body.contains(e)&&e.focus({preventScroll:!0})}}),[]);const l=n();return 0===l.length?r.createElement("div",{id:u}):r.createElement("div",t()({id:u},(e=>Object.entries(e).reduce(((e,[t,r])=>(t.includes("data-")&&(e[t]=r),e)),{}))(e),{className:p(s,i.popupsRoot,"css-editing-scope")}),r.createElement("div",{id:"popups-wrapper",className:i.popupsWrapper,ref:o,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":c},l))};const c={PopupRoot_Classic:{component:e=>r.createElement(i,t()({},e,{styles:u}))}}}(),n}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[PopupRoot_Classic].02746290.bundle.min.js.map